﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.PoModel.SystemManager;

namespace SystemCenterSoa.IRepository.SystemManager
{
    public interface IDictionariesRepository
    {
        /// <summary>
        /// 根据字典类别key获取下面的字典选项
        /// </summary>
        /// <param name="typeKey">字典类别key</param>
        /// <returns></returns>
        List<DictionariesPo> GetDictionariesKey(string typeKey);
        /// <summary>
        /// 分页条件查询
        /// </summary>
        /// <param name="dicName"></param>
        /// <param name="dicType"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<DictionariesPo> GetDictionariesList(string dicName, string dicType, int pageIndex, int pageSize);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="dictionaries"></param>
        /// <returns></returns>
        bool GetDictionariesAdd(DictionariesPo dictionaries);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        bool GetDictionariesDel(string ids);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        DictionariesPo GetDictionariesFan(int id);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="dictionaries"></param>
        /// <returns></returns>
        bool GetDictionariesUpdate(DictionariesPo dictionaries);
    }
}
